#ifndef EQUIPMENTINTONETCMD_H
#define EQUIPMENTINTONETCMD_H

#include "Command/BaseCmd.h"
#include "DataType/ControlPointStruct.h"
#include "DataType/ZigbeeStruct.h"
#include "Protocol/ZigbeeControlProtocol.h"

class EquipmentIntoNetCmd : public BaseCmd
{
    Q_OBJECT
public:
    Q_INVOKABLE explicit EquipmentIntoNetCmd(QObject *parent = 0);

    enum{FunctionCode = ZigbeeControlProtocol::EquipmentIntoNet};
    Package toPackage();
    void unPackage(Package package);


    quint8 index() const;
    void setIndex(const quint8 &index);


    ZigbeeStruct zigbee() const;
    void setZigbee(const ZigbeeStruct &zigbee);

private:
    quint8 m_index;
    ZigbeeStruct m_zigbee;

};

#endif // RECEIVECURRENTPOINTCMD_H
